<?php
//作者千柒qq743395324
namespace Home\Controller;

use Think\Controller;

class ApiController extends Controller
{
	public function _initialize(){
            //判断用户是否已经登录
        if (!isset($_SESSION['username'])) {
         redirect('Admin/Login');
         exit;
        }
    }
	
    public function img_post()
    {
        $imgs=$_POST['imgs'];

        $arr=explode(',',$imgs);
        print_r($arr);
        $tot=count($arr);
        echo $tot;

        for ($x=0; $x<$tot; $x++) {
        echo $arr[$x];
        }
    }

}
